#ifndef _VC_H_
#define _VC_H_

#include "cx32l003_vc.h"
#include "cx32l003_rcc.h"
#include "cx32l003_gpio.h"


#define     _VC_LEVELDIV           0x1f
#define     _VC_FLTCLK             0x0100
#define     _VC_FLTNUM             0x20000
#define     _VC_FLTNEWSTATE        ENABLE
#define     _VC_FALLINTNEWSTATE    DISABLE
#define     _VC_RISEINTNEWSTATE    DISABLE
#define     _VC_HIGHINTNEWSTATE    ENABLE
#define     _VC_INTNEWSTATE        ENABLE
#define     _VC_RESET_STATE        DISABLE
#define     _VC_STATE              ENABLE

#define     _VC_V25DIV              V25DIV_00
#define     _VC_V25STATE            ENABLE
#define     _VC_NINSEL              0x00
#define     _VC_PINSEL              0x00

#define     DEBUG_VCx                VC
#define     _VC_LPMODE              0x00

//#define     _LVD_GPIOx              GPIOC
//#define     _LVD_GPIO_PIN_SOURCE    GPIO_PinSource7
//#define     _LVD_GPIO_AF_VALUE      GPIO_AF_LIRC_OUT_PC7

//#define     _LVD_GPIOx              GPIOD
//#define     _LVD_GPIO_PIN_SOURCE    GPIO_PinSource1
//#define     _LVD_GPIO_AF_VALUE      GPIO_AF_HIRC_OUT_PD1

//#define     _LVD_GPIOx              GPIOC
//#define     _LVD_GPIO_PIN_SOURCE    GPIO_PinSource3
//#define     _LVD_GPIO_AF_VALUE      GPIO_AF_HXTL_OUT_PD3

#define  DEBUG_VC_IRQ                VC_IRQn
#define  DEBUG_VC_IRQHandler         VC_IRQHandler













//-------------define function--------------
void TEST_VC_Config(void);
#endif
